<?php

$output = array(
    "success" => $success,
    "labels" => $labels->getRawValue(),
    "data" => $data->getRawValue(),
    "xSeriesTitle" => $xSeriesTitle,
    "ySeriesTitle" => $ySeriesTitle,
);

echo json_encode($output);
